package com.task.core.service;

import java.util.List;

import com.task.common.domain.info.KeyAndValue;
import com.task.core.domain.DatasourceInfo;
import com.task.core.domain.RefererSourceInfo;
import com.task.core.domain.info.RelationMissionSourceUseDataCountInfo;
import com.task.core.dto.request.RefererSourceRequestDTO;

/**
 * @author 迪迦.
 * @date 2024/11/4 17:29
 */
public interface RefererSourceService {

  List<RefererSourceInfo> getRefererSourceByPage(RefererSourceRequestDTO request);

  List<KeyAndValue> getRefererSourceForOption(RefererSourceRequestDTO request);

  void addRefererSource(RefererSourceRequestDTO request);

  void modifyRefererSource(RefererSourceRequestDTO request);

  void deleteRefererSource(String refererSourceCode, Long userId);

  void updateDataCount(Integer intValue, String dataSourceCode);

  RefererSourceInfo getRefererSourceByCode(String code);

  List<RelationMissionSourceUseDataCountInfo> getMissionPageRefererInfoByRefererCodes(List<String> sourceCodeList);

    List<RefererSourceInfo> getRefererSourceByCodes(List<String> sourceCodeList);
    //
  //void incrementUseCount(String chooseCode);
  //
  //void decrementUseCount(String sourceCode);
}
